

let HE_LC = "heima_lc"

// 存储token令牌
let setToken = obj => {
    localStorage.setItem(HE_LC, JSON.stringify(obj))
}

// 获取token令牌
let getToken = () => {
    return JSON.parse(localStorage.getItem(HE_LC))
}

// 删除token令牌
let removeToken = () => {
    localStorage.removeItem(HE_LC)
}

// 导出接口
export { setToken, getToken, removeToken }